//
//  NetworkEngine.h
//  NetworkAdapter
//
//  Created by bluedaquiri on 16/7/5.
//  Copyright © 2016年 blue. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

#define kNetworkShared [NetworkEngine shareEngine]

typedef void (^ResponseBlock)(BOOL isSuccess, id object, NSError *error);

typedef NS_ENUM(NSUInteger, ImageCompressType) {
    compressTypePortrait,       // 个人头像压缩
    compressTypeWorks,          // 个人作品压缩
};

@interface NetworkEngine : AFHTTPSessionManager

+ (instancetype)shareEngine;    // 单例

/** 请求接口方法 */
- (void)requestWithPath:(NSString *)path requestParamter:(NSDictionary *)requestParamter reponseObjctClass:(Class)reponseObjctClass completionBlock:(ResponseBlock)completionBlcok;


@end
